home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_11_12 / winroth / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-20  |  3.0 KB  |  80 lines

  1. /*
  2. ** Exception Library -- General exception handling for ANSI C programs
  3. ** 
  4. ** Copyright (C) 1992 Computational Vision and Active Perception Lab. (CVAP),
  5. **                    Royal Institute of Technology, Stockholm.
  6. **
  7. ** This library is free software; you can redistribute it and/or
  8. ** modify it under the terms of the GNU Library General Public
  9. ** License as published by the Free Software Foundation; either
  10. ** version 2 of the License, or (at your option) any later version.
  11. ** 
  12. ** This library is distributed in the hope that it will be useful,
  13. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. ** Library General Public License for more details.
  16. ** 
  17. ** You should have received a copy of the GNU Library General Public
  18. ** License along with this library (see COPYING-LIB); if not, write to 
  19. ** the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, 
  20. ** USA.
  21. ** 
  22. **                            Written by
  23. **                                 
  24. **                  Harald Winroth, Matti Rendahl
  25. **      Computational Vision and Active Perception Laboratory
  26. **                  Royal Institute of Technology
  27. **                        S-100 44 Stockholm
  28. **                              Sweden
  29. **                                 
  30. ** Report bugs to candela-bug@bion.kth.se, and direct all inquiries to 
  31. ** candela@bion.kth.se.
  32. **
  33. */
  34.  
  35. #ifndef _exception_config_h
  36. #define _exception_config_h
  37.  
  38. /*
  39.  * EXC_MAX_HANDLERS is the maximum number of top-level exception handlers
  40.  * that can be installed. Usually, there is at most one handler for each
  41.  * library linked with the application.
  42.  */
  43.  
  44. #define EXC_MAX_HANDLERS          128
  45.  
  46. /*
  47.  * EXC_MAX_CALLBACKS is the maximum number of callbacks that can be installed.
  48.  * Very few packages will install callbacks if their own.
  49.  */
  50.  
  51. #define EXC_MAX_CALLBACKS         128
  52.  
  53. /* 
  54.  * EXC_LOCAL_TRY_DATA_SIZE is the number of words (actually void*) reserved 
  55.  * for callback data in each TRY-block. Set EXC_LOCAL_TRY_DATA_SIZE to the
  56.  * expected number of callbacks installed. If it is too low, you will pay a
  57.  * small performance penelty. If it is too large, some stack space will be
  58.  * wasted, which might be noticible for deeply nested function.
  59.  *
  60.  * NOTE: The value affects the macro expansions. Therefore, the exception
  61.  * library and ALL CLIENT CODE MUST BE RE-COMPILED (not just re-linked) if
  62.  * the value is changed.
  63.  */
  64.  
  65. #define EXC_LOCAL_TRY_DATA_SIZE     4
  66.  
  67. /*
  68.  * Define HAVE_TERMCAP if the termcap(3) terminal control library should
  69.  * be used by the exc_err_*() text formatting routines (for underline, reverse
  70.  * video etc.). If the symbol is defined, all applications using the exception
  71.  * library must also be linked with the termcap library. Usually, the 
  72.  * HAVE_TERMCAP symbol is defined in the makefile only (if defined at all).
  73.  */
  74.  
  75. #if 0
  76. #define HAVE_TERMCAP
  77. #endif
  78.  
  79. #endif /* !_exception_config_h */
  80.